package app.controllers.admin.activity;

import app.models.activity.MallEnroll;
import com.github.sog.controller.BasicController;
import com.github.sog.controller.datatables.core.DatatablesCriterias;
import com.jfinal.plugin.activerecord.Page;

/**
 * <p>
 * 商场活动报名列表
 * </p>
 *
 * @author liuhui
 * @version 1.0 2014-04-24 10:16
 * @since JDK 1.6
 */
public class ActivityMallEnrollController extends BasicController {

    public void index() {
        render("activityMall_enroll.ftl");
    }


    public void list() {
        final DatatablesCriterias criterias = getCriterias();
        Page<MallEnroll> pageRt = MallEnroll.dao.datatable(criterias);
        renderDataTables(pageRt, criterias);
    }
}
